﻿<%@ Page Language="C#" MasterPageFile="~/admin/MainPage/ItemMasterPage.master" AutoEventWireup="true"
    CodeFile="Action.aspx.cs" Inherits="admin_LinesManage_Action" ValidateRequest="false"
    Title="Untitled Page" %>

<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dxuc" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dxrp" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Src="../Controls/uclCheckRefreshed.ascx" TagName="uclCheckRefreshed"
    TagPrefix="uc1" %>
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <uc1:uclCheckRefreshed ID="CheckRefreshed1" runat="server"></uc1:uclCheckRefreshed>
   <script src="../../Kinde/kindeditor.js" type="text/javascript"></script>
    <script type="text/javascript">
KE.show({
				id : 'ctl00_ContentPlaceHolder1_ASPxRoundPanel1_txtFeatureDes',
				resizeMode : 1,
				allowPreviewEmoticons : false,
				allowUpload : false,
				items : [
				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'image', 'link']
			});

    </script>
    <br />
    <input type="hidden" id="hdfAction" runat="server" />
    <input type="hidden" id="hdfPic" runat="server" />
    <input type="hidden" id="hdfTid" runat="server" />
    <dxrp:ASPxRoundPanel ID="ASPxRoundPanel1" ShowHeader="False" runat="server" Width="100%">
        <PanelCollection>
            <dxrp:PanelContent runat="server">
                <table class="category" width="100%" align="center">
                    <tr>
                        <td style="width: 100px; text-align: right;">
                            线路标题：
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td>
                                        <asp:TextBox ID="txtTitle" Width="300px" runat="server"></asp:TextBox>
                                    </td>
                                    <td>
                                        <div id="ctl00_ContentPlaceHolder1_ASPxRoundPanel1_txtTitleTip" style="width: 400px;
                                            display: inline;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right">
                            出团日期：
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtStartDate" Width="300px" runat="server">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        <div id="ctl00_ContentPlaceHolder1_ASPxRoundPanel1_txtStartDate_ITip" style="width: 250px;
                                            display: inline;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right">
                            旅游周期：
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td>
                                        <dxe:ASPxSpinEdit ID="txtCycleDays" runat="server" Height="21px" Number="0" AllowNull="False">
                                        </dxe:ASPxSpinEdit>
                                    </td>
                                    <td>
                                        天
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right">
                            票价：
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td>
                                        <asp:TextBox ID="txtPrice" runat="server" Height="21px" >
                                        </asp:TextBox>
                                    </td>
                                    <td>
                                        元/人
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
                    <tr>
                        <td style="width: 100px; text-align: right; vertical-align: top;">
                            线路类型：<br />
                            目的地：
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td>
                                       
                                                <asp:DropDownList ID="ddlLineType" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlLineType_SelectedIndexChanged">
                                                </asp:DropDownList>
                                                <br />
                                                <asp:DropDownList ID="ddlPro" AutoPostBack="true" OnSelectedIndexChanged="ddlPro_SelectedIndexChanged"
                                                    runat="server">
                                                </asp:DropDownList>
                                                <asp:DropDownList ID="ddlCity" runat="server">
                                                </asp:DropDownList>
                                       
                                    </td>
                                    <td>
                                        <div id="Div3" style="width: 250px; display: inline;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right">
                            起点城市：
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtStarCity" Width="150px" runat="server">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        <div id="ctl00_ContentPlaceHolder1_ASPxRoundPanel1_txtStarCity_ITip" style="width: 250px;
                                            display: inline;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right">
                            终点景点：
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td>
                                        <dxe:ASPxTextBox ID="txt_tourName" Width="150px" runat="server">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        <div id="ctl00_ContentPlaceHolder1_ASPxRoundPanel1_txt_tourName_ITip" style="width: 400px;
                                            display: inline;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right">
                            旅游推荐类别：
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td>
                                        <asp:DropDownList ID="ddlTravelShowType" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <div id="Div8" style="width: 250px; display: inline;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right">
                            主题旅游类型：
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td>
                                        <asp:DropDownList ID="ddlSubject" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <div id="Div16" style="width: 250px; display: inline;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right; vertical-align: top;">
                            封面图片：
                        </td>
                        <td>
                            <asp:Image ID="imgPic" runat="server" Width="150px" Height="120px" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right" valign="top">
                            添加图片：
                        </td>
                        <td style="text-align: left;">
                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                                <tr>
                                    <td>
                                        <dxuc:ASPxUploadControl ID="uploadControl" runat="server" Height="2px" ShowAddRemoveButtons="false"
                                            Width="310px" FileInputCount="1">
                                        </dxuc:ASPxUploadControl>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right; vertical-align:top;">
                            行程特点：
                        </td>
                        <td style="text-align: left; margin: 0px; padding: 0px;">
                            <textarea id="txtFeatureDes" runat="server" style="width: 100%; height: 200px; visibility: hidden;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right" valign="top">
                            行程安排：
                        </td>
                        <td style="text-align: left; margin: 0px; padding: 0px;">
                           <CE:Editor ID="txtContent" runat="server" AutoConfigure="Simple" Width="100%">
                                                                <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"
                                                                    CssClass="CuteEditorFrame" Height="100%" Width="100%" />
                                                            </CE:Editor>
                                                            
                        </td>
                    </tr>
                         </ContentTemplate>
                                        </asp:UpdatePanel>
                    <tr>
                        <td style="width: 100px; text-align: right; vertical-align: top;">
                            其他设置：
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td>
                                        <dxe:ASPxCheckBox runat="server" ID="chkTuiJian">
                                        </dxe:ASPxCheckBox>
                                        是否推荐
                                    </td>
                                    <td>
                                        <dxe:ASPxCheckBox runat="server" ID="chkTeJia">
                                        </dxe:ASPxCheckBox>
                                        是否特价
                                    </td>
                                    <td>
                                        <dxe:ASPxCheckBox runat="server" ID="chkIsZBTravel">
                                        </dxe:ASPxCheckBox>
                                        周边旅游
                                    </td>
                                    <td>
                                        <dxe:ASPxCheckBox runat="server" ID="chkIsShowHH">
                                        </dxe:ASPxCheckBox>
                                        豪华油轮
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <dxe:ASPxCheckBox runat="server" ID="chkIsGNHot">
                                        </dxe:ASPxCheckBox>
                                        国内热门
                                    </td>
                                    <td>
                                        <dxe:ASPxCheckBox runat="server" ID="chkIsSNHot">
                                        </dxe:ASPxCheckBox>
                                        省内热门
                                    </td>
                                    <td>
                                        <dxe:ASPxCheckBox runat="server" ID="chkIsSHowJD">
                                        </dxe:ASPxCheckBox>
                                        推荐终点景点
                                    </td>
                                    <td>
                                        <dxe:ASPxCheckBox runat="server" ID="chkCJTuiJian">
                                        </dxe:ASPxCheckBox>
                                        出境推荐
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right; height: 37px;">
                            发布时间：
                        </td>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <dxe:ASPxDateEdit ID="txtPubDate" runat="server">
                                        </dxe:ASPxDateEdit>
                                    </td>
                                    <td>
                                        <div id="ctl00_ContentPlaceHolder1_ASPxRoundPanel1_txt_pubDate_ITip" style="width: 250px;
                                            display: inline;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right; height: 48px;">
                            审核状态：
                        </td>
                        <td style="text-align: left; height: 48px;">
                            <asp:DropDownList ID="ddlState" runat="server">
                                <asp:ListItem Value="0" Text="未审核"></asp:ListItem>
                                <asp:ListItem Value="1" Selected="True" Text="已审核"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right; height: 37px;">
                            排序编号：
                        </td>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <dxe:ASPxSpinEdit ID="txtOrderby" runat="server" Height="21px" Number="0" AllowNull="False">
                                        </dxe:ASPxSpinEdit>
                                    </td>
                                    <td>排序编号越大越靠前
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right">
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td style="width: 80px;">
                                        <dxe:ASPxButton ID="btnSave" runat="server" AutoPostBack="False" Text="确 定" OnClick="ibtnAdd_Click"
                                            Width="66px">
                                            <ClientSideEvents Click="function validate(s, e) {      
                                             e.processOnServer =  jQuery.formValidator.PageIsValid('1'); 
                           }    " />
                                        </dxe:ASPxButton>
                                    </td>
                                    <td style="width: 80px;">
                                        <dxe:ASPxButton ID="btnBack" runat="server" OnClick="btnBack_Click" Text="返 回" Width="63px">
                                        </dxe:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </dxrp:PanelContent>
        </PanelCollection>
    </dxrp:ASPxRoundPanel>

    <script language="javascript" type="text/javascript">
$(document).ready(function(){
$.formValidator.initConfig({onError:function(msg){alert(msg)}});
      $("#ctl00_ContentPlaceHolder1_ASPxRoundPanel1_txtTitle").formValidator({onshow:"请输入线路标题",onfocus:"为更好提供搜索请尽量包括（城市,景点名称,地址,旅游周期等关键字）",oncorrect:"合法"}).InputValidator({min:1,onerror:"线路标题不能为空,请确认"});
      $("#ctl00_ContentPlaceHolder1_ASPxRoundPanel1_txtStartDate_I").formValidator({onshow:"请输入出团日期",onfocus:"如：（每月6、11、13、20、27、28日）",oncorrect:"合法"}).InputValidator({min:1,onerror:"出团日期不能为空,请确认"});
   $("#ctl00_ContentPlaceHolder1_ASPxRoundPanel1_txtStarCity_I").formValidator({onshow:"请输入出发城市",onfocus:"请输入出发城市",oncorrect:"合法"}).InputValidator({min:1,onerror:"出发城市不能为空,请确认"});
  $("#ctl00_ContentPlaceHolder1_ASPxRoundPanel1_txt_tourName_I").formValidator({onshow:"请输入终点景点名称",onfocus:"请输入终点景点名称,用于下方推荐终点景点时页面可显示",oncorrect:"输入为空"}).InputValidator({min:0});

});
    </script>

</asp:Content>
